<template>
  <div id="app">
    <router-view v-transition></router-view>
  </div>
</template>

<script>
import '@/assets/js/public.js'

import {mapState,mapMutations} from 'vuex'
const storeJs=require('storejs');

export default {
  name: 'App',
  data(){
    return{

    }
  },
  components:{

  },
  computed: {

},
updated:function(){
  /*路由跳转更新时:*/
  /*全局注册当前App对象*/
  window.vuep = this;
  /*全局注册当前子组件对象*/
  if(this.$children && this.$children.length>1 && this.$children[1].$children.length>1) window.vues = this.$children[1].$children.length == 2 ? this.$children[1].$children[1] : this.$children[1];
},
  beforeMount:function(){
    /*全局注册当前App对象*/
    window.vuep = this;
  },
mounted(){

  var _this=this;
  //vConsole
  //var vConsole = new VConsole();
},
methods:{
    ...mapMutations(['update_storeInfo']),
    /*全局confirm弹窗方法*/
  showmsg(message,ok,no){
    let okf = (typeof ok != 'function' ? function(){} : ok);
    let nof = (typeof no != 'function' ? function(){} : no);
    this.$vux.confirm.show({
      title: '提示',
      content: message,
      onConfirm:okf,onCancel:nof
    });
  }
}
}
</script>

<style lang="scss">

</style>
